package test.config;

import com.spring.annotation.ComponentScan;
import com.spring.annotation.Configuration;
import com.spring.context.impl.AnnotationApplicationContext;
import test.testA.A;

@Configuration
@ComponentScan("test.config")
public class ConfigDemo {
	public static void main(String[] args) {
		
		AnnotationApplicationContext ac = new AnnotationApplicationContext(ConfigDemo.class);
		
		
		A a = ac.getBean("a", A.class);
		
		a.testA();
	}
}
